package com.ruoyi.service.impl;

import com.ruoyi.domain.Governmentemployee;
import com.ruoyi.mapper.GovernmentemployeeMapper;
import com.ruoyi.service.IGovernmentemployeeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * GovernmentemployeeService业务层处理
 * 
 * @author wjy
 * @date 2025-01-11
 */
@Service
public class GovernmentemployeeServiceImpl implements IGovernmentemployeeService 
{
    @Autowired
    private GovernmentemployeeMapper governmentemployeeMapper;

    /**
     * 查询Governmentemployee
     * 
     * @param govEid Governmentemployee主键
     * @return Governmentemployee
     */
    @Override
    public Governmentemployee selectGovernmentemployeeByGovEid(Long govEid)
    {
        return governmentemployeeMapper.selectGovernmentemployeeByGovEid(govEid);
    }

    /**
     * 查询Governmentemployee列表
     * 
     * @param governmentemployee Governmentemployee
     * @return Governmentemployee
     */
    @Override
    public List<Governmentemployee> selectGovernmentemployeeList(Governmentemployee governmentemployee)
    {
        return governmentemployeeMapper.selectGovernmentemployeeList(governmentemployee);
    }

    /**
     * 新增Governmentemployee
     * 
     * @param governmentemployee Governmentemployee
     * @return 结果
     */
    @Override
    public int insertGovernmentemployee(Governmentemployee governmentemployee)
    {
        return governmentemployeeMapper.insertGovernmentemployee(governmentemployee);
    }

    /**
     * 修改Governmentemployee
     * 
     * @param governmentemployee Governmentemployee
     * @return 结果
     */
    @Override
    public int updateGovernmentemployee(Governmentemployee governmentemployee)
    {
        return governmentemployeeMapper.updateGovernmentemployee(governmentemployee);
    }

    /**
     * 批量删除Governmentemployee
     * 
     * @param govEids 需要删除的Governmentemployee主键
     * @return 结果
     */
    @Override
    public int deleteGovernmentemployeeByGovEids(Long[] govEids)
    {
        return governmentemployeeMapper.deleteGovernmentemployeeByGovEids(govEids);
    }

    /**
     * 删除Governmentemployee信息
     * 
     * @param govEid Governmentemployee主键
     * @return 结果
     */
    @Override
    public int deleteGovernmentemployeeByGovEid(Long govEid)
    {
        return governmentemployeeMapper.deleteGovernmentemployeeByGovEid(govEid);
    }
}
